home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / tut-code.lha / tut-code / box5 / main.c < prev   
Encoding:
C/C++ Source or Header  |  1992-01-02  |  689 b   |  28 lines

  1. #include <InterViews/background.h>
  2. #include <InterViews/box.h>
  3. #include <InterViews/glue.h>
  4. #include <InterViews/label.h>
  5. #include <InterViews/place.h>
  6. #include <InterViews/session.h>
  7. #include <InterViews/style.h>
  8. #include <InterViews/window.h>
  9.  
  10. int main(int argc, char** argv) {
  11.     Session* session = new Session("Himom", argc, argv);
  12.     Style* style = session->style();
  13.     const Font* f = style->font();
  14.     const Color* fg = style->foreground();
  15.     session->run_window(
  16.     new ApplicationWindow(
  17.         new Background(
  18.         new TBBox(
  19.             new VCenter(new Label("good", f, fg), 1.0),
  20.             new VGlue(0, fil, 0),
  21.             new Label("bye", f, fg)
  22.         ),
  23.         style->background()
  24.         )
  25.     )
  26.     );
  27. }
  28.